#!/usr/bin/python
# -*- coding: UTF-8 -*-

import sys
import os
from Scripts.Startup import StartupLoadProcess
from Scripts.Excel import ExcelLoadPrcess
from Scripts.Output import OutputProcess

#gets startup file url
startupUrl = os.getcwd()
startupUrl += "/Config.xml"

#reads startup file config content
print("[1] the startup data is loading ...... ", end='')
outputType, outputFolderUrls, configDatas =  StartupLoadProcess.Load(startupUrl)
print("OK")

#reads excel file content
print("[2] all of the excel is loading ...... ", end='')
excelConfigDatas = ExcelLoadPrcess.Load(configDatas)
print("OK")

#outputs config datas
print("[3] output all of the excel")
OutputProcess.Run(outputType, outputFolderUrls, excelConfigDatas)
print("output config is successful")

